-- GENERATED SPELL FOR [Remnant of Hate] --


function spell0_22094(pUnit, Event) --@Vertex Color Purple,Self--
pUnit:FullCastSpellOnTarget(38696,pUnit)
pUnit:RegisterEvent('Sorts_22094', 621, 1)
end

function Sorts_22094(pUnit, Event)
local choix_sorts_22094 = math.random(0, 0)
if choix_sorts_22094 == 0 then
pUnit:RegisterEvent('spell0_22094', 1, 1)
end
end

function mob22094_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22094', math.random(1500, 3000), 1)
end

function mob22094_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22094_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22094_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22094, 1, 'mob22094_Action')
RegisterUnitEvent(22094, 2, 'mob22094_Leave')
RegisterUnitEvent(22094, 3, 'mob22094_Kill')
RegisterUnitEvent(22094, 4, 'mob22094_Die')
